import { Base } from '../../utils/base.js';

class Category extends Base {
  constructor() {
    super();
  }
  getTypeData(id,callback) {
    var that = this;
    var params = {
      url: 'type/'+id,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(params);
  }
  getColumnData(typeId,callback){
    var that = this;
    var params = {
      url: 'column/' + typeId,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(params);
  }
  
};
Category.parent=1;
export { Category };
